﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using MediatR;

namespace S.BreedingHistory.Api.Application.Commmand
{
    public class BreedHistoryLogiDelCommand:IRequest<bool>
    {
        /// <summary>
        /// 种母历史记录主键
        /// </summary>
        public int BDHRId { get; set; }
        /// <summary>
        /// 种母电子耳标
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string? EarTag { get; set; }
        /// <summary>
        /// 配种日期
        /// </summary>
        public DateTime? BreedingDate { get; set; }
        /// <summary>
        /// 种公电子耳号
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string? BreedingRam { get; set; }
        /// <summary>
        /// 妊检日期
        /// </summary>
        public DateTime? PregnancyDate { get; set; }
        /// <summary>
        /// 妊检结果
        /// </summary>
        public int PregnancytestResult { get; set; }
        /// <summary>
        /// 分娩日期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 健羔数
        /// </summary>
        public int HealthyNumber { get; set; }
        /// <summary>
        /// 健羔总重
        /// </summary>
        public decimal TotalWeightOfHealthyLambs { get; set; }
        /// <summary>
        /// 弱羔数
        /// </summary>
        public int LambNumber { get; set; }
        /// <summary>
        /// 畸形数
        /// </summary>
        public int DeformityNumber { get; set; }
        /// <summary>
        /// 死胎数
        /// </summary>
        public int StillbirthsNumber { get; set; }
        /// <summary>
        /// 木乃伊数
        /// </summary>
        public int MummyNumber { get; set; }
        /// <summary>
        /// 畸胎数
        /// </summary>
        public int FreaksNumber { get; set; }
        /// <summary>
        /// 当前胎次
        /// </summary>
        public int CurrentPregnancy { get; set; }
        /// <summary>
        /// 断奶日期
        /// </summary>
        public DateTime? WeaningDate { get; set; }
        /// <summary>
        /// 断奶只数
        /// </summary>
        public int WeaningCount { get; set; }
        /// <summary>
        /// 断奶窝重
        /// </summary>
        public decimal TotalweaningWeightg { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string? CreateBy { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string? UpdateBy { get; set; }
        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 逻辑删除标志
        /// </summary>
        public bool IsDel { get; set; }
        /// <summary>
        /// 是否可编辑（默认可编辑）
        /// </summary>
        public bool IsEditor { get; set; } 
    }
}
